import 'dart:io';

class ImgRes {
  // 检测是否为鸿蒙平台
  static bool get isOhos => Platform.isAndroid && Platform.environment.containsKey('OHOS');

  static String imagesPng(String resName) {
    // if (isOhos) {
    //   return 'assets/$resName';
    // }
    return 'packages/my_image/assets/$resName';
  }

  static String imagesTabs(String resName) {
    // if (isOhos) {
    //   return 'assets/$resName.png';
    // }
    return 'packages/my_image/assets/$resName.png';
  }
}
